<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2024/9/14
  Time: 下午2:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <title>数码在线</title>
</head>
<body>

<%
    String username=null;
    Cookie[] cookies= request.getCookies();
    for(int i=0;i<cookies.length;i++){
        Cookie cname= cookies[i];
        if(cname.getName().equals("username")){
            username=cname.getValue();
        }
    }
%>
<%=username %>,登录成功

</body>
</html>